<template>
  <div>
      <button @click="getData">获取数据</button>
      <hr>
      element-plus使用
      <hr>
      <el-button>Default</el-button>
    <el-button type="primary">Primary</el-button>
    <el-button type="success">Success</el-button>
    <el-button type="info">Info</el-button>
    <el-button type="warning">Warning</el-button>
    <el-button type="danger">Danger</el-button>
  </div>
</template>

<script setup>
import axios from 'axios'

const getData = ()=>{
  axios({
    url:"/news.json"
    /*
    
    */
    // method:"post"
  })
  .then(r=>{
    console.log(r.data);
  })
}

</script>

<style lang="scss" scoped>

</style>